import {
	request
} from '@/util/api.js'

// 密码登录
export const login = (data) => {
	return request({
		url: 'api/login/log',
		method: 'POST',
		data
	})
}

// 获取验证码
export const register = (data) => {
	return request({
		url: 'api/register/sendsms',
		method: 'POST',
		data
	})
}

// 获取微信手机号
export const getPhone = (data) => {
	return request({
		url: 'api/login/wechat_phone',
		method: 'POST',
		data
	})
}

// 退出登录
export const loginOut = (data) => {
	return request({
		url: 'api/login/out',
		method: 'POST',
		data
	})
}
